﻿/*
using Adaptive.Agrona;
using Adaptive.Agrona.Concurrent;
using System;
using System.Collections.Generic;
using System.Text;

using Unity.Commons.Client.Offline;
using Unity.Debug;
using Xunit;

namespace Unity.Commons.Client.Tests.Offline
{
    public class OfflineProducerTest
    {
        public readonly ConsoleOfflineHandler TestOfflineHandler =
            new ConsoleOfflineHandler();

        private readonly IMutableDirectBuffer TestDirectBuffer =
            new UnsafeBuffer(new byte[8]);

        [Fact]
        public void MethodsTest()
        {
            OfflineProducer testOfflineProducer = new OfflineProducer(TestOfflineHandler);
            bool testConnectResult = testOfflineProducer.Connect(null);
            Assert.True(testConnectResult);

            bool testProducerResult = testOfflineProducer.Produce(TestDirectBuffer, 0, 0);
            Assert.True(testProducerResult);

            bool testAddToBatchingResult = testOfflineProducer.AddToBatching(TestDirectBuffer, 0, 0);
            Assert.True(testAddToBatchingResult);

            int testCompleteBatchingResult = testOfflineProducer.CompleteBatching();
            Assert.Equal(0, testCompleteBatchingResult);

            testOfflineProducer.Close();
            testOfflineProducer.Dispose();
        }
    }
}
*/

